Skip to content

fix(patch): cherry-pick 48130eb to release/v0.34.0-preview.3-pr-22665 to patch version v0.34.0-preview.3 and create version 0.34.0-preview.4#22719

Merged
sehoon38 merged 1 commit into
release/v0.34.0-preview.3-pr-22665from
hotfix/v0.34.0-preview.3/0.34.0-preview.4/preview/cherry-pick-48130eb/pr-22665
Mar 16, 2026
Merged

fix(patch): cherry-pick 48130eb to release/v0.34.0-preview.3-pr-22665 to patch version v0.34.0-preview.3 and create version 0.34.0-preview.4#22719
sehoon38 merged 1 commit into
release/v0.34.0-preview.3-pr-22665from
hotfix/v0.34.0-preview.3/0.34.0-preview.4/preview/cherry-pick-48130eb/pr-22665

Conversation

@gemini-cli-robot

Copy link
Copy Markdown
Collaborator

This PR automatically cherry-picks commit 48130eb to patch version v0.34.0-preview.3 in the preview release to create version 0.34.0-preview.4.

@gemini-cli-robot gemini-cli-robot requested a review from a team as a code owner March 16, 2026 18:47
@github-actions github-actions Bot mentioned this pull request Mar 16, 2026
18 tasks
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the gemini-3.1-flash-lite-preview model and significantly enhances the application's model selection and access management. It integrates a new experiment flag to determine user access to Pro models, ensuring that users without such access are automatically directed to suitable alternative models like gemini-3-flash-preview. The user interface for model selection has been updated to dynamically filter available models based on the user's access tier, providing a more tailored and appropriate experience.

Highlights

  • New Model Introduction: The gemini-3.1-flash-lite-preview model was introduced and integrated across the application.
  • Pro Model Access Management: New logic was implemented to determine if a user has access to Pro models, utilizing a new experiment flag (PRO_MODEL_NO_ACCESS).
  • Automatic Model Switching: If a user lacks Pro model access and has an 'auto' model selected, their model will automatically switch to gemini-3-flash-preview.
  • Dynamic UI Model Filtering: The model selection dialog (ModelDialog) now dynamically filters available models, hiding Pro models for users without access and conditionally displaying gemini-3.1-flash-lite-preview for free-tier users.
  • Enhanced Test Coverage: Comprehensive unit tests were added for the new model, Pro model access logic, and the updated UI behavior.
Changelog
  • packages/cli/src/ui/components/ModelDialog.test.tsx
    • Imported new model constants and user tier types.
    • Updated mock implementation for @google/gemini-cli-core to use importOriginal.
    • Added mock functions for Pro model access and user tier.
    • Initialized new mock functions in beforeEach.
    • Added new test cases for manual view rendering, model filtering, and escape key handling based on Pro model access and user tier.
  • packages/cli/src/ui/components/ModelDialog.tsx
    • Imported useEffect, PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL, isProModel, and UserTierId.
    • Introduced state for hasAccessToProModel and initialized view based on Pro model access.
    • Added a useEffect hook to asynchronously check Pro model access.
    • Modified escape key handling to conditionally switch views based on Pro model access.
    • Updated manualOptions memo to filter Pro models for users without access and conditionally include PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL for free-tier users.
  • packages/core/src/code_assist/experiments/flagNames.ts
    • Added a new experiment flag named PRO_MODEL_NO_ACCESS.
  • packages/core/src/config/config.test.ts
    • Imported additional model constants.
    • Added test cases to verify automatic model switching to Flash models for users without Pro access when an auto model is selected.
  • packages/core/src/config/config.ts
    • Implemented logic in refreshAuth to automatically switch to PREVIEW_GEMINI_FLASH_MODEL if a user lacks Pro model access and has an auto model selected.
    • Added getProModelNoAccess (async) and getProModelNoAccessSync (sync) methods to check the PRO_MODEL_NO_ACCESS experiment flag.
  • packages/core/src/config/models.test.ts
    • Imported PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL.
    • Added test cases for getDisplayString, resolveModel, and isActiveModel to include the new PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL.
  • packages/core/src/config/models.ts
    • Defined a new constant PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL.
    • Added PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL to VALID_GEMINI_MODELS and isPreviewModel function.
Activity
  • No specific activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions

Copy link
Copy Markdown

Size Change: +2.29 kB (+0.01%)

Total Size: 26.5 MB

Filename Size Change
./bundle/gemini.js 26 MB +2.29 kB (+0.01%)
ℹ️ View Unchanged
Filename Size
./bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js 221 kB
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js 227 kB
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js 11.5 kB
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js 132 B
./bundle/sandbox-macos-permissive-open.sb 890 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB
./bundle/sandbox-macos-strict-open.sb 4.82 kB
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB

compressed-size-action

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This PR cherry-picks a commit to handle users without access to Pro models. The changes are well-implemented across the UI and core logic, with corresponding tests. The logic for detecting user access, filtering the model list in the dialog, and falling back to a different model seems correct and robust. I did not find any critical or high-severity issues in this patch.

@sehoon38 sehoon38 enabled auto-merge (squash) March 16, 2026 19:00
@sehoon38 sehoon38 merged commit 72bca21 into release/v0.34.0-preview.3-pr-22665 Mar 16, 2026
28 checks passed
@sehoon38 sehoon38 deleted the hotfix/v0.34.0-preview.3/0.34.0-preview.4/preview/cherry-pick-48130eb/pr-22665 branch March 16, 2026 19:04
@sripasg sripasg added the size/l A large sized PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l A large sized PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants